package EVO.service.impl;

import EVO.dao.StudentDao;
import EVO.entity.Student;
import EVO.service.StudentService;

import java.util.List;

public class StudentServiceImpl implements StudentService {

    private StudentDao studentDao;

    public void setStudentDao(StudentDao studentDao) {
        this.studentDao = studentDao;
    }

    @Override
    public int addStudent(Student student) {
        int result = studentDao.insertStudent(student);
        return result;
    }

    @Override
    public List<Student> queryStudent() {
        List<Student> stuList = studentDao.selectStudent();
        return stuList;
    }
}
